package org.whh.metadata.datasource.database.pojo;

import org.whh.metadata.datasource.database.DBDatasource;
import org.whh.metadata.datasource.database.MysqlDataSource;

import java.util.Properties;

/**
 * @author xiaogc
 * @version 1.0
 * @date 2021/7/14 17:03
 */
public class DataSourceParam {
    public String diverName;
    public String serverName ;
    public String databaseName;
    public String user;
    public String url;
    public String password;
    public int portNumber;
    public Properties properties = new Properties();
    public DataSourceParam setDriverName(String diverName){
        this.diverName = diverName;
        return this;
    }
    public DataSourceParam setServerName(String serverName){
        this.serverName = serverName;
        return this;
    }
    public DataSourceParam setDatabaseName(String databaseName){
        this.databaseName = databaseName;
        return this;
    }
    public DataSourceParam setUser(String user){
        this.user = user;
        return this;
    }public DataSourceParam setUrl(String url){
        this.url = url;
        return this;
    }
    public DataSourceParam setPassword(String password){
        this.password = password;
        return this;
    }
    public DataSourceParam setPortNumber(Integer portNumber){
        this.portNumber = portNumber;
        return this;
    }
    public DataSourceParam setProperties(Properties properties){
        this.properties = properties;
        return this;
    }
    public DBDatasource build(){
        return null;
    }
}
